<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加雇员</title>
</head>
<body>
	<h1>添加雇员</h1>
	<form action="${pageContext.request.contextPath }/employee.do?flag=addEmployee" method="post">
	<table>
		<tr><td>Name</td><td><input type="text" name="name"></td></tr>
		<tr><td>Email</td><td><input type="email" name="email"></td></tr>
		<tr><td>Grade</td><td><input type="text" name="grade"></td></tr>
		<tr><td>Password</td><td><input type="password" name="pwd"></td></tr>
		<tr><td>Salary</td><td><input type="text" name="salary"></td></tr>
		<tr><td>Department</td><td>
		<select name="departmentId">
			<c:forEach items="${departmentList }" var="department">
				<option value="${department.id }">${department.name }</option>
			</c:forEach>
		</select>
		</td></tr>
		<tr><td><input type="submit" value="添加"></td><td><input type="reset" name="重填"></td></tr>
	</table>
	</form>
</body>
</html>